package cate.game.pvp.throne.data.ko;

import cate.game.role.RoleSimpleBase;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

import java.util.ArrayList;
import java.util.List;

@NoteClass("王座争霸淘汰赛-战报")
public class TBKoReport {

    @NoteField("轮次")
    public int round;

    @NoteField(value = "胜者组败者组",detail = "晋级赛才有")
    public int groupType;

    @NoteField("对阵分组id")
    public int matchGroup;

    @NoteField("a方简要信息")
    public RoleSimpleBase a;

    @NoteField("b方简要信息")
    public RoleSimpleBase b;

    @NoteField("胜利方")
    public byte winner;

    @NoteField("录像信息")
    public List<TBReplayInfo> replayInfos = new ArrayList<>();

    public static TBKoReport of(int round,TBKoMatch match){
        TBKoReport report = new TBKoReport();
        report.round = round;
        report.matchGroup = match.matchGroup;
        report.a = match.a;
        report.b = match.b;
        report.winner = match.winner;
        report.replayInfos = match.replayInfos;
        return report;
    }

}
